{include file='public/head_css'}
{include file='public/head_js'}
<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-body table-responsive no-padding">
                <table class="table table-bordered table-condensed table-striped">
                    <tbody>
                    <tr>
                        <th colspan="4" class="text-bold text-center">信息</th>
                    </tr>
                    {if !empty($data)} <tr>
                        <td class="text-bold">姓名</td>
                        <td>{if isset($data['staff']['name'])}{$data['staff']['name']}{/if}</td>
                    </tr>
                    {foreach name="data" item="vo" key ='key'}
                    {if $key != 'staff' && $key != '文件' && $key !='迟到情况'}
                    <tr>
                        {if $key==='状态'}
                        <td class="text-bold">{$key}</td>
                        <td>{if $vo==1}启用中{else}禁用中{/if}</td>
                        {else}
                        <td class="text-bold">{$key}</td>
                        <td>{$vo}</td>
                        {/if}
                    </tr>
                    {elseif $key==='文件'}

                    <tr>
                        <td class="text-bold">{$key}</td>
                        <td class="dataListMultiImg" id="fileImgViewer">
                            {foreach name="vo" item='item_file'}
                            <img class="dataListImg" data-img="{$item_file}" src="{$item_file}">
                            {/foreach}
                        </td>
                        <script>
                            $(function () {
                                $('#fileImgViewer').viewer({
                                    url: 'data-img',
                                });
                            });
                        </script>
                    </tr>
                    {elseif $key==='迟到情况'}
                    <tr>
                        <td class="text-bold">{$key}</td>
                        <td>
                            <p style="color: red ">
                                {foreach name='vo' id='val' }
                                {$val}分钟
                                {/foreach}
                            </p>
                        </td>
                    </tr>

                    {/if}

                    {/foreach}
                    {else}
                    <tr>
                        <th colspan="4" class="text-bold text-center">暂无信息</th>
                    </tr>
                    {/if}

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>